/// examUid : null
/// answerTime : 25
/// answerTimeStr : null
/// createTimeStr : null
/// averageScore : 10
/// categoryOne : "trainExam_128"
/// categoryTwo : null
/// createTime : "2021-02-17 14:58:33"
/// extractingTimes : 1
/// id : 3579462
/// mineId : 25
/// obtainScore : 10
/// passPracticeTimes : 0
/// realName : null
/// department : null
/// userPost : null
/// statisticsDate : "2021-02-17 00:00:00"
/// userId : 1463
/// userName : null

class BeanExamResult {
  dynamic examUid;
  int answerTime;
  dynamic answerTimeStr;
  dynamic createTimeStr;
  int averageScore;
  String categoryOne;
  dynamic categoryTwo;
  String createTime;
  int extractingTimes;
  int id;
  int mineId;
  int obtainScore;
  int passPracticeTimes;
  dynamic realName;
  dynamic department;
  dynamic userPost;
  String statisticsDate;
  int userId;
  dynamic userName;

  static BeanExamResult fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    BeanExamResult beanExamResultBean = BeanExamResult();
    beanExamResultBean.examUid = map['examUid'];
    beanExamResultBean.answerTime = map['answerTime'];
    beanExamResultBean.answerTimeStr = map['answerTimeStr'];
    beanExamResultBean.createTimeStr = map['createTimeStr'];
    beanExamResultBean.averageScore = map['averageScore'];
    beanExamResultBean.categoryOne = map['categoryOne'];
    beanExamResultBean.categoryTwo = map['categoryTwo'];
    beanExamResultBean.createTime = map['createTime'];
    beanExamResultBean.extractingTimes = map['extractingTimes'];
    beanExamResultBean.id = map['id'];
    beanExamResultBean.mineId = map['mineId'];
    beanExamResultBean.obtainScore = map['obtainScore'];
    beanExamResultBean.passPracticeTimes = map['passPracticeTimes'];
    beanExamResultBean.realName = map['realName'];
    beanExamResultBean.department = map['department'];
    beanExamResultBean.userPost = map['userPost'];
    beanExamResultBean.statisticsDate = map['statisticsDate'];
    beanExamResultBean.userId = map['userId'];
    beanExamResultBean.userName = map['userName'];
    return beanExamResultBean;
  }

  Map toJson() => {
        "examUid": examUid,
        "answerTime": answerTime,
        "answerTimeStr": answerTimeStr,
        "createTimeStr": createTimeStr,
        "averageScore": averageScore,
        "categoryOne": categoryOne,
        "categoryTwo": categoryTwo,
        "createTime": createTime,
        "extractingTimes": extractingTimes,
        "id": id,
        "mineId": mineId,
        "obtainScore": obtainScore,
        "passPracticeTimes": passPracticeTimes,
        "realName": realName,
        "department": department,
        "userPost": userPost,
        "statisticsDate": statisticsDate,
        "userId": userId,
        "userName": userName,
      };
}
